package com.meshnetics.gb.util.formatters;

import com.meshnetics.gb.util.ByteBufferManager;

import java.nio.ByteBuffer;

/**
 * NumberFormatter implementation for long.
 *
 * @author Yury Aserchev (yaserchev@meshnetics.com)
 *         Date: 20.06.2008 19:05:49
 */
final class NumberFormatterLong extends AbstractNumberFormatter {
    protected ByteBuffer getBuffer(final long value) {
        return ByteBufferManager.allocateBE(Long.SIZE / Byte.SIZE).putLong(value);
    }

    protected void checkRange(final long value) {
        ; // Do nothing - long cover whole possible range.
    }
}
